]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Throw GObject.NotImplementedError when requiring overriding
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 21 May 2019 20:28:07 +0000 (15:28 -0500)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 21 May 2019 20:43:21 +0000 (15:43 -0500)
commit88697add1b55c54bfb9f74982d3cbb6c96efe489
treeb73e6416c9e3e8f3b992c603e472bebbdd390ae0
parent4730b7a0948c834b9169f506818a5974e98cab0f
js: Throw GObject.NotImplementedError when requiring overriding

Since version 1.50.0, gjs defines GObject.NotImplementedError for throwing
errors when a "virtual" method that requires a subclass implementation is not
defined.

So use this instead of a generic JS Error in such cases.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/549
js/gdm/batch.js
js/ui/iconGrid.js
js/ui/overviewControls.js
js/ui/switcherPopup.js
js/ui/workspace.js